package com.itheima.qqfarm.service.impl;


import java.util.List;

import com.itheima.qqfarm.bean.Customer;
import com.itheima.qqfarm.dao.CustomerDao;
import com.itheima.qqfarm.factory.BeanFactory;
import com.itheima.qqfarm.service.CustomerService;

public class CustomerServiceImpl implements CustomerService {

	
	private CustomerDao customerDao = BeanFactory.get(CustomerDao.class);

	@Override
	public List<Customer> getAllCustomers() {
		return customerDao.getAll();
	}
}
